package com.lapian.designmode.flyweight.test;

public class ClientC {
    public static void main(String[] args) {
        DouLuoDaLuFactoryC douLuoDaluFactoryC=new DouLuoDaLuFactoryC();
        AbstractRoleC abstractRoleC=douLuoDaluFactoryC.get("控制系");
        abstractRoleC.use(new UserC("唐三"));
        AbstractRoleC abstractRoleC1 = douLuoDaluFactoryC.get("敏攻系");
        abstractRoleC1.use(new UserC("小舞"));
        AbstractRoleC abstractRoleC2 = douLuoDaluFactoryC.get("敏攻系");
        abstractRoleC2.use(new UserC("朱竹清"));
        douLuoDaluFactoryC.typeSize();
    }

}
